<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
<xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/>

<!-- ========================= -->
<!-- root element: rmaAcknowledgement -->
<!-- ========================= -->


<xsl:template match="rmaAcknowledgement">

	<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

	<fo:layout-master-set>
		<fo:simple-page-master master-name="simpleA4"
        		page-height="11in"
        		page-width="8.5in"
        		margin-top="20mm"
        		margin-bottom="20mm"
      			margin-left="5mm"
      			margin-right="5mm" >

			<fo:region-after extent="3mm"/>

			<fo:region-body />

  		</fo:simple-page-master>
	</fo:layout-master-set>




<fo:page-sequence master-reference="simpleA4">

<!--============================== -->
<!-- Page Number block             -->
<!-- Modified By Basha (12/24/2003)-->
<!--============================== -->

<fo:static-content flow-name="xsl-region-after">
	<fo:block font-size="7pt" font-weight="bold" text-align="right">
        Page <fo:page-number />
        <!--<xsl:value-of select="count(/packingSlip/lineItems/lineItem)"/>-->
         of
        <fo:page-number-citation ref-id="endofdoc"/>
        <!--<fo:page-number-citation ref-id="last-page"/>-->
    </fo:block>
</fo:static-content>

<fo:flow flow-name="xsl-region-body">
    <!--==============================-->
    <!-- Logo and Self address block  -->
    <!--==============================-->
	<fo:block font-size="8pt" space-after="1cm">
	<fo:table table-layout="fixed" width="100%" >

	<fo:table-column column-width="10mm" />
	<fo:table-column column-width="35mm"/>
	<fo:table-column column-width="20mm" />
	<fo:table-column display-align="center" />
	<fo:table-column />
	<fo:table-body>
		<fo:table-row>
			<fo:table-cell />
			<fo:table-cell>
                <xsl:apply-template match="logo">
                    <fo:external-graphic content-height = ".5in"  content-width = ".5in" >
                        <xsl:attribute name="src" >
                            <xsl:value-of select="logo" />
                        </xsl:attribute>
                    </fo:external-graphic>
                </xsl:apply-template>
            </fo:table-cell>
			<fo:table-cell />
            <fo:table-cell text-align="center" width="100%">
                <fo:block font-size="12pt" font-weight="bold" display-align="center">RMA Acknowledgement</fo:block>
                <xsl:apply-template match="selfAddress">
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//name" /></fo:block>
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//address1" /></fo:block>
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//address2" /></fo:block>
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//address3" /></fo:block>
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//address4" /></fo:block>
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//cityStateZip" /></fo:block>
                    <fo:block font-size="7pt" font-weight="bold"><xsl:value-of select="selfAddress//phoneFax" /></fo:block>
                </xsl:apply-template>
            </fo:table-cell>
			<fo:table-cell />
		</fo:table-row>
	</fo:table-body>
	</fo:table >
	</fo:block>
    <!--==============================-->
    <!-- Note block  -->
    <!-- Added By Prabhanjan (05/11/2003)-->
    <!--==============================-->
    <fo:table table-layout="fixed" width="100%" >
        <fo:table-column />
        <fo:table-body>
            <fo:table-row height="0.5cm" >
                <fo:table-cell width="100%">
                    <fo:block font-size="7pt" font-weight="bold" text-decoration="underline">Note: <xsl:value-of select="note" /></fo:block>
                </fo:table-cell>
            </fo:table-row>
            <fo:table-row height="0.5cm" >
                <fo:table-cell width="100%">
                    <fo:block font-size="7pt" font-weight="bold"></fo:block>
                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table >
    <!--==============================-->
    <!-- From and To addresses block  -->
    <!--==============================-->
	<fo:table table-layout="fixed" width="100%" space-after="0.5cm">
		<!--<fo:table-column column-width="50mm"/>
        <fo:table-column column-width="2mm" />-->
		<fo:table-column column-width="50mm" />
		<fo:table-column column-width="2mm" />
        <fo:table-column column-width="50mm"/>
        <fo:table-column column-width="2mm" />
        <fo:table-column column-width="50mm"/>
		<fo:table-body>
			<fo:table-row>
                <!--<fo:table-cell>
                     <fo:block font-size="8pt" > <xsl:apply-templates select="information"/> </fo:block>
                </fo:table-cell>

                <fo:table-cell />-->

                <fo:table-cell>
			 		<fo:block font-size="8pt" > <xsl:apply-templates select="orderByAddress"/> </fo:block>
				</fo:table-cell>

				<fo:table-cell/>

				<fo:table-cell>
			 		<fo:block font-size="8pt" > <xsl:apply-templates select="billToAddress"/> </fo:block>
				</fo:table-cell>

                <fo:table-cell/>

				<fo:table-cell>
			 		<fo:block font-size="8pt" > <xsl:apply-templates select="shipToAddress"/> </fo:block>
				</fo:table-cell>

            </fo:table-row>
		</fo:table-body>
	</fo:table>

    <fo:block font-size="8pt" space-after="0.5cm">
        <xsl:apply-templates select="information"/>
    </fo:block>

    <!--=============================== -->
    <!-- Line Items details block      -->
    <!--=============================== -->
	<fo:block font-size="8pt" space-after="0.5cm">
        <xsl:apply-templates select="lineItems"/>
    </fo:block>
    <!--=============================== -->
    <!-- Instructions block      -->
    <!--=============================== -->
    <fo:block font-size="8pt"  break-before="page" font-weight="bold" text-align="left" space-after="0.2cm" text-decoration="underline"> Please read carefully: </fo:block>
    <fo:block font-size="8pt"  text-align="center" space-after="0.5cm"></fo:block>
    <fo:block font-size="8pt" space-after="2cm"> <xsl:apply-templates select="instructions"/> </fo:block>
    <!-- Inorder to get page count -->
    <fo:block id="endofdoc"></fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>



<!-- ================================ -->
<!--	child element: Self Address     -->
<!-- ================================ -->
<!-- Modified By Prabhanjan (12/24/2003) -->

<xsl:template match="selfAddress">
	<fo:table width="100%" table-layout="fixed">
	<fo:table-column />
		<fo:table-body>
			<fo:table-row>
				<fo:table-cell text-align="center">

					<fo:block font-weight="bold">Self Address:</fo:block>
					<fo:block><xsl:value-of select="name"/></fo:block>
					<fo:block><xsl:value-of select="address1"/></fo:block>
					<fo:block><xsl:value-of select="address2"/></fo:block>
					<fo:block><xsl:value-of select="address3"/></fo:block>
					<fo:block><xsl:value-of select="phone"/></fo:block>
					<fo:block><xsl:value-of select="fax"/></fo:block>
					<fo:block>Email: <xsl:value-of select="email"/></fo:block>

				</fo:table-cell>
			</fo:table-row>
		</fo:table-body>
	</fo:table>
</xsl:template>

<!-- ================================ -->
<!--  Child element: Order By Address  -->
<!-- ================================ -->
<!-- Modified By Prabhanjan (12/24/2003) -->

<xsl:template match="orderByAddress">
	<fo:table margin="2mm" width="100%" table-layout="fixed">
		<fo:table-column />
	        <fo:table-body>
			<fo:table-row height="0.5cm">
				<fo:table-cell background-color="#DEE1E2" border="1pt double black" display-align="center">
				<fo:block font-weight="bold">Ordered By:</fo:block>
				</fo:table-cell>
			</fo:table-row>

			<fo:table-row height="2cm">
				<fo:table-cell font-weight="bold" background-color="#FFFFEE" border="1pt double black" display-align="center">

				<fo:block><xsl:value-of select="name"/></fo:block>
                <fo:block><xsl:value-of select="contactPerson"/></fo:block>
				<fo:block><xsl:value-of select="address1"/></fo:block>
				<fo:block><xsl:value-of select="address2"/></fo:block>
				<fo:block><xsl:value-of select="address3"/></fo:block>
                <fo:block><xsl:value-of select="address4"/></fo:block>
                <fo:block><xsl:value-of select="city"/></fo:block>
                <fo:block><xsl:value-of select="stateZipCountry"/></fo:block>
				<fo:block><xsl:value-of select="phone"/></fo:block>
				<fo:block><xsl:value-of select="fax"/></fo:block>
				<fo:block><xsl:value-of select="email"/></fo:block>

				</fo:table-cell>
			</fo:table-row>

		</fo:table-body>
	</fo:table>
</xsl:template>



<!-- ================================ -->
<!--  Child element: Bill To Address  -->
<!-- ================================ -->
<!-- Modified By Prabhanjan (12/24/2003) -->


<xsl:template match="billToAddress">
	<fo:table margin="2mm" width="100%" table-layout="fixed">
		<fo:table-column />
	        <fo:table-body>
			<fo:table-row height="0.5cm">
				<fo:table-cell background-color="#DEE1E2" border="1pt double black" display-align="center">
				<fo:block font-weight="bold">Bill To:</fo:block>
				</fo:table-cell>
			</fo:table-row>
			<fo:table-row height="2cm">
				<fo:table-cell font-weight="bold" background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block><xsl:value-of select="name"/></fo:block>
                    <fo:block><xsl:value-of select="contactPerson"/></fo:block>
                    <fo:block><xsl:value-of select="address1"/></fo:block>
                    <fo:block><xsl:value-of select="address2"/></fo:block>
                    <fo:block><xsl:value-of select="address3"/></fo:block>
                    <fo:block><xsl:value-of select="address4"/></fo:block>
                    <fo:block><xsl:value-of select="city"/></fo:block>
                    <fo:block><xsl:value-of select="stateZipCountry"/></fo:block>
                    <fo:block><xsl:value-of select="phone"/></fo:block>
                    <fo:block><xsl:value-of select="fax"/></fo:block>
                    <fo:block><xsl:value-of select="email"/></fo:block>
                </fo:table-cell>
			</fo:table-row>

		</fo:table-body>
	</fo:table>
</xsl:template>

<xsl:template match="shipToAddress">
    <fo:table margin="2mm" width="100%" table-layout="fixed">
        <fo:table-column />
            <fo:table-body>
            <fo:table-row height="0.5cm">
                <fo:table-cell background-color="#DEE1E2" border="1pt double black" display-align="center">
                <fo:block font-weight="bold">Ship To:</fo:block>
                </fo:table-cell>
            </fo:table-row>
            <fo:table-row height="2cm">
                <fo:table-cell font-weight="bold" background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block><xsl:value-of select="vendorAddress"/></fo:block>
                    <!--<fo:block><xsl:value-of select="name"/></fo:block>
                    <fo:block><xsl:value-of select="contactPerson"/></fo:block>
                    <fo:block><xsl:value-of select="address1"/></fo:block>
                    <fo:block><xsl:value-of select="address2"/></fo:block>
                    <fo:block><xsl:value-of select="address3"/></fo:block>
                    <fo:block><xsl:value-of select="address4"/></fo:block>
                    <fo:block><xsl:value-of select="city"/></fo:block>
                    <fo:block><xsl:value-of select="stateZipCountry"/></fo:block>
                    <fo:block><xsl:value-of select="phone"/></fo:block>
                    <fo:block><xsl:value-of select="fax"/></fo:block>
                    <fo:block><xsl:value-of select="email"/></fo:block>-->
                </fo:table-cell>
            </fo:table-row>

        </fo:table-body>
    </fo:table>
</xsl:template>

<!-- =================================== -->
<!--	child element: Information       -->
<!-- =================================== -->

<xsl:template match="information">
    <fo:block font-size="7pt">
        <fo:table margin="1mm" width="100%" table-layout="fixed">
            <fo:table-column column-width="40mm"/>
            <fo:table-column column-width="45mm"/>
            <fo:table-column column-width="45mm"/>
            <fo:table-column column-width="25mm"/>
            <fo:table-column column-width="25mm"/>
            <fo:table-column column-width="25mm"/>
            <fo:table-body>
            <fo:table-row height="0.6cm" background-color="#DEE1E2">
                <fo:table-cell border="1pt double black" display-align="center" >
                        <fo:block font-weight="bold" text-align="center">RMA Number</fo:block>
                  </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                        <fo:block font-weight="bold" text-align="center">Contact Person</fo:block>
                  </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center"><xsl:value-of select="end_user_Label"/></fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center">Issue Date</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center">Requested Date</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                    <fo:block font-weight="bold" text-align="center">Close Date</fo:block>
                </fo:table-cell>
            </fo:table-row>
            <fo:table-row height="0.4cm" background-color="#FFFFEE">
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">
                    <xsl:value-of select="rmaNumber"/>
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">
                    <xsl:value-of select="contactPerson"/>
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">
                    <xsl:value-of select="endUser"/>
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">
                    <xsl:value-of select="requestedDate"/>
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">
                    <xsl:value-of select="issueDate"/>
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">
                    <xsl:value-of select="closeDate"/>
                    </fo:block>
                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>
    </fo:block>
</xsl:template>


<xsl:template match="informationOld">
	<fo:block font-size="7pt">
	<fo:table width="100%" table-layout="fixed">
		<fo:table-column />
	        <fo:table-body>
			<fo:table-row height="0.5cm" >
			<fo:table-cell display-align="center">
			<fo:table margin="2mm" width="100%" table-layout="fixed">
				<fo:table-column />
				<fo:table-body>
					<fo:table-row height="0.5cm" background-color="#DEE1E2">
						<fo:table-cell border="1pt double black" display-align="center">
                            <fo:table margin="2mm" width="100%" table-layout="fixed">
                                <fo:table-column />
                                    <fo:table-body>
                                        <fo:table-row height="0.5cm" >
                                            <fo:table-cell border="1pt double black" display-align="center">
                                                <fo:block font-weight="bold" text-align="left">RMA Number :</fo:block>
                                            </fo:table-cell>
                                         </fo:table-row>
                                    </fo:table-body>
                                </fo:table>
						</fo:table-cell>
					</fo:table-row>
                    <fo:table-row height="0.4cm" background-color="#FFFFEE">
                        <fo:table-cell border="1pt double black" display-align="center">
                            <fo:table margin="2mm" width="100%" table-layout="fixed">
                                <fo:table-column />
                                    <fo:table-body>
                                        <fo:table-row height="0.5cm" >
                                            <fo:table-cell border="1pt double black" display-align="center">
                                                <fo:block font-weight="bold" text-align="left"><xsl:value-of select="rmaNumber"/></fo:block>
                                            </fo:table-cell>
                                         </fo:table-row>
                                    </fo:table-body>
                                </fo:table>
                         </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row  height="0.2cm" background-color="#FFFFFF">
                        <fo:table-cell />
                    </fo:table-row>
                    <fo:table-row height="0.5cm" background-color="#DEE1E2">
                        <fo:table-cell display-align="center">
                        <fo:table margin="2mm" width="100%" table-layout="fixed">
                            <fo:table-column />
                            <fo:table-column />
                            <fo:table-body>
                                <fo:table-row height="0.5cm" >
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left">Contact Person :</fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left"><xsl:value-of select="end_user_Label"/> :</fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>
                        </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row  height="0.4cm" background-color="#FFFFEE">
                        <fo:table-cell border="1pt double black" display-align="center">
                            <fo:table margin="2mm" width="100%" table-layout="fixed">
                                <fo:table-column />
                                <fo:table-column />
                                    <fo:table-body>
                                    <fo:table-row height="0.5cm" >
                                        <fo:table-cell border="1pt double black" display-align="center">
                                            <fo:block font-weight="bold" text-align="left"><xsl:value-of select="contactPerson"/></fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell border="1pt double black" display-align="center">
                                            <fo:block font-weight="bold" text-align="left"><xsl:value-of select="endUser"/></fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row  height="0.2cm" background-color="#FFFFFF">
                        <fo:table-cell />
                    </fo:table-row>
                    <fo:table-row height="0.5cm" background-color="#DEE1E2">
                        <fo:table-cell display-align="center">
                        <fo:table margin="2mm" width="100%" table-layout="fixed">
                            <fo:table-column />
                            <fo:table-column />
                            <fo:table-column />
                                <fo:table-body>
                                <fo:table-row height="0.5cm" >
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left">Requested Date :</fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left">Issue Date :</fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left">Close Date :</fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>
                        </fo:table-cell>
                    </fo:table-row>
                    <fo:table-row  height="0.4cm" background-color="#FFFFEE">
                        <fo:table-cell display-align="center">
                            <fo:table margin="2mm" width="100%" table-layout="fixed">
                                <fo:table-column />
                                <fo:table-column />
                                <fo:table-column />
                                <fo:table-body>
                                <fo:table-row height="0.5cm" >
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left"><xsl:value-of select="requestedDate"/></fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left"><xsl:value-of select="issueDate"/></fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell border="1pt double black" display-align="center">
                                        <fo:block font-weight="bold" text-align="left"><xsl:value-of select="closeDate"/></fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                        </fo:table-cell>
                    </fo:table-row>
				</fo:table-body>
			</fo:table>
			</fo:table-cell>
	</fo:table-row>
	</fo:table-body>
	</fo:table>
    </fo:block>
</xsl:template>

<!-- =================================== -->
<!--	child element: LineItems. 	     -->
<!-- =================================== -->

<xsl:template match="lineItems">
	<fo:block font-size="7pt">
        <fo:table margin="1mm" width="100%" table-layout="fixed">
            <fo:table-column column-width="10mm"/>
	        <fo:table-column column-width="10mm"/>
		    <fo:table-column column-width="35mm"/>
            <fo:table-column column-width="22mm"/>
            <fo:table-column column-width="22mm"/>
            <fo:table-column column-width="22mm"/>
	        <fo:table-column column-width="20mm"/>
	        <fo:table-column column-width="15mm"/>
	        <fo:table-column column-width="49mm"/>
		    <!--<fo:table-column column-width="16mm"/>
		    <fo:table-column column-width="13mm"/>
	        <fo:table-column column-width="11mm"/>
            <fo:table-column column-width="8mm"/>
	        <fo:table-column column-width="6mm"/>
            <fo:table-column column-width="10mm"/>
            <fo:table-column column-width="15mm"/>
            <fo:table-column column-width="10mm"/>
            <fo:table-column column-width="13mm"/>-->

            <fo:table-body>
			<fo:table-row height="0.6cm" background-color="#DEE1E2">
                <fo:table-cell border="1pt double black" display-align="center" >
                        <fo:block font-weight="bold" text-align="center">Line Item#</fo:block>
                  </fo:table-cell>
				<fo:table-cell border="1pt double black" display-align="center" >
			    		<fo:block font-weight="bold" text-align="center">PO Line#</fo:block>
	  			</fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center"><xsl:value-of select="labelMfgPartNumber"/></fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center">PO #</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center">SO #</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                    <fo:block font-weight="bold" text-align="center">Invoice #</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                  <fo:block font-weight="bold" text-align="center">Invoice Date</fo:block>
                </fo:table-cell>
	  			<fo:table-cell border="1pt double black" display-align="center" >
		    			<fo:block font-weight="bold" text-align="center">Quantity</fo:block>
	  			</fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
		    			<fo:block font-weight="bold" text-align="center">Problem Description</fo:block>
	  			</fo:table-cell>
                <!--<fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center">Price</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center" >
                      <fo:block font-weight="bold" text-align="center">Extended Price</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">Exchange</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">Credit</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">FA</fo:block>
                </fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
					<fo:block font-weight="bold" text-align="center">Receive Qty</fo:block>
				</fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
					<fo:block font-weight="bold" text-align="center">Remarks</fo:block>
				</fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
					<fo:block font-weight="bold" text-align="center">Close Qty</fo:block>
				</fo:table-cell>
                <fo:table-cell border="1pt double black" display-align="center">
                    <fo:block font-weight="bold" text-align="center">Close Date</fo:block>
                </fo:table-cell>-->
			</fo:table-row>
            <xsl:for-each select="/rmaAcknowledgement/lineItems/lineItem">
                        <fo:table-row height="0.4cm" background-color="#FFFFEE">
                            <fo:table-cell border="1pt double black" display-align="center">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="lineItemNo"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="poLineItem"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="mfgPartNumber"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" >
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="poNo"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" >
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="soNo"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" >
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="invoiceNo"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" >
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="invoiceDate"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" >
                                <fo:block font-weight="bold" text-align="right">
                                <xsl:value-of select="qty"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="problemDescription"/>
                                </fo:block>
                            </fo:table-cell>
                            <!--<fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="unitPrice"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="extendedPrice"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center">
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="exchange"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="credit"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="center" >
                                <xsl:value-of select="fa"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="receiveQty"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center">
                                <fo:block font-weight="bold" text-align="left">
                                <xsl:value-of select="remarks"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center">
                                <fo:block font-weight="bold" text-align="center">
                                <xsl:value-of select="closeQty"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border="1pt double black" display-align="center" hyphenate="true" language = "en">
                                <fo:block font-weight="bold" text-align="left" >
                                <xsl:value-of select="lineItemCloseDate"/>
                                </fo:block>
                            </fo:table-cell>-->
                        </fo:table-row>
                    </xsl:for-each>
		</fo:table-body>
	</fo:table>
	</fo:block>
</xsl:template>
<!-- =================================== -->
<!--	child element: Terms And Conditions      -->
<!--   Modified By Prabhanjan (12/24/2003) -->
<!-- =================================== -->
<xsl:template match="instructions">
	<fo:table margin="2mm" width="100%" table-layout="fixed">
		<fo:table-column />

	        <fo:table-body>
			<fo:table-row height="0.4cm">
				<fo:table-cell>
					<fo:block> <xsl:apply-templates select="instruction"/> </fo:block>
				</fo:table-cell>
			</fo:table-row>
		</fo:table-body>
	</fo:table>
</xsl:template>

<!-- =================================== -->
<!--	child element: Term1      -->
<!--   Modified By Prabhanjan (12/24/2003) -->
<!-- =================================== -->

<xsl:template match="instruction">
	<fo:table margin="0.5mm" width="100%" table-layout="fixed"  background-color="#FFFFFF" font-size="8pt" >
		<fo:table-column />

	        <fo:table-body>
			<!-- <xsl:for-each select="/rmaAcknowledgement/instructions/instruction"> -->
			<fo:table-row height="0.4cm">
				<fo:table-cell hyphenate="true" language = "en">
					<fo:block font-weight="bold" text-align="justify">
						- <xsl:value-of select="description"/>
					</fo:block>
				</fo:table-cell>
			</fo:table-row>
			<!-- </xsl:for-each> -->
		</fo:table-body>
	</fo:table>
</xsl:template>

</xsl:stylesheet>